package com.yztc.yidoutang.activity.main_activity;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;

import java.util.List;

/**
 * 用在MainActivity中的Presenter类
 */
public class MainPresenter implements MainContract.Presenter {
    private MainContract.View view;
    private MainContract.Model model;

    public MainPresenter(MainContract.View view) {
        this.view = view;
        this.model = new MainModel();
    }

    @Override
    public void initViewPager(FragmentActivity activity, List<Fragment> fragmentList, ViewPager vp) {
        model.initViewPager(activity,fragmentList,vp);
    }
}